//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.web.controller.user;

import com.ruoyi.live.user.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping({"/report"})
public class ReportController {
    @Autowired
    ReportService service;

    public ReportController() {
    }

    @RequestMapping({"/index/{id}"})
    @PreAuthorize("@ss.hasAnyRoles('admin')")
    public ModelAndView index(@PathVariable Long id) {
        return (new ModelAndView("/report/index")).addObject("obj", this.service.getInitParams(id));
    }
}
